home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************/
- /* */
- /* TurboCAD for Windows */
- /* Copyright (c) 1993 - 2001 */
- /* International Microcomputer Software, Inc. */
- /* (IMSI) */
- /* All rights reserved. */
- /* */
- /******************************************************************/
- // VPWnd.h : header file
- // TurboCAD SDK: New class created to handle the drawing view on the dialog box.
-
- /////////////////////////////////////////////////////////////////////////////
- // CViewWnd window
-
- class CViewWnd : public CWnd
- {
- // Construction
- public:
- CViewWnd();
-
- // Attributes
- protected:
- View *m_pView;
- IDrawing* m_pIDrawing;
- BOOL m_bStartSelect;
-
- // Operations
- public:
- // Set up the current view
- void SetView(View* pView);
- // Zoom to the extents of the drawing and refresh the window
- void ZoomAndInvalidate();
- BOOL SetSelectMode();
- IDrawing* GetDrawing();
- Graphics* GetGraphics();
-
- COleVariant m_varTopLevel;
- COleVariant m_varInvisible;
- COleVariant m_varSegments;
- COleVariant m_varArcs;
- COleVariant m_varTexts;
- COleVariant m_varBlocks;
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CViewWnd)
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CViewWnd();
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CViewWnd)
- afx_msg void OnPaint();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-